package com.medical.server.depart.service.impl;

import com.laozj.common.utils.PageUtils;
import com.laozj.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.medical.server.depart.dao.DepartCategoryDao;
import com.medical.server.depart.entity.DepartCategoryEntity;
import com.medical.server.depart.service.DepartCategoryService;


@Service("departCategoryService")
public class DepartCategoryServiceImpl extends ServiceImpl<DepartCategoryDao, DepartCategoryEntity> implements DepartCategoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DepartCategoryEntity> page = this.page(
                new Query<DepartCategoryEntity>().getPage(params),
                new QueryWrapper<DepartCategoryEntity>()
        );

        return new PageUtils(page);
    }

}